package expedition;

import java.util.PriorityQueue;
import java.util.Queue;

public class Bate1
{
	public static void main(String[] args)
	{
		Queue<Integer> oil = new PriorityQueue<Integer>();
		
		oil.add(1);
		oil.add(20);
		oil.add(23);
		oil.add(50);
		oil.add(5);
		oil.add(3);
		oil.add(3);
		
		System.out.println(oil.poll());
		System.out.println(oil.poll());
		System.out.println(oil.poll());
		System.out.println(oil.poll());
		System.out.println(oil.poll());
		System.out.println(oil.poll());
		System.out.println(oil.poll());
	}
}
